package edu.zut.software.identity.Service;

import edu.zut.software.identity.domain.StuMajor;
import edu.zut.software.identity.domain.TeaMajor;
import edu.zut.software.identity.domain.Teacher;
import org.springframework.data.domain.Page;

import java.util.List;

public interface TeaMajorService {
    TeaMajor findById(String id);
    List<TeaMajor> findAll();
    void deleteById(String  id);
    void save(TeaMajor teaMajor);
    boolean isExists(String id);
    int getId(String id);
    /**
     * 分页
     * @param page
     * @param pageSize
     * @return
     */
    Page<TeaMajor> findAll(Integer page, Integer pageSize);

    /**
     * 找出指定父亲的所有儿子
     * @param collegeId
     * @return
     */
    List<TeaMajor> findAllByCollegeId(String collegeId);
}
